package com.icss.th.db.pojo;

import com.icss.th.common.config.SystemConfig;

public class PageInfo 
{
	/**
	 * 每页显示多少条
	 */
	private int countPerPage;
	
	/**
	 * 第几页
	 */
	private int pageNum;
	
	/**
	 * 总页数
	 */
	private int pageCount;
	
	/**
	 * 总记录数
	 */
	private int recordCount;
	
	public PageInfo(){
		if(this.countPerPage == 0){
			this.countPerPage = Integer.parseInt(SystemConfig.COUNT_PER_PAGE);
		}
		if(this.pageNum == 0){
			this.pageNum = 1;
		}
	}

	public int getCountPerPage() {
		return countPerPage;
	}

	public void setCountPerPage(int countPerPage) {
		this.countPerPage = countPerPage;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getPageCount() {
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

	public int getRecordCount() {
		return recordCount;
	}

	public void setRecordCount(int recordCount) {
		this.recordCount = recordCount;
	}
}
